
<?php if ($this->content_list != null) : ?>
	<?php 
			//So I get the first content list and want to return as a Data Provider
            $content_list_data_provider = ListViewCollectionBlock::getContentList($this->content_list[0], null , null, ConstantDefine::CONTENT_LIST_RETURN_DATA_PROVIDER);		    
			//Get the current content List model
			if (isset($content_list_data_provider) && $content_list_data_provider != null) : ?>
				<?php if($this->display_type==ListViewCollectionBlock::DISPLAY_TYPE_THUMBNAIL) : ?>
                	<div class="row" style="margin-bottom:10px; border-color: #356635;">
  						<div class="span12">
	  						<div class="section_title margcenter">
								<h5>Our Collections</h5>
							</div>
                	 <?php 
                    	$this->widget('zii.widgets.CListView',
       		             array(
                                  	'viewData'=>array('asset'=>$this->layout_asset),
                                    'dataProvider'=>$content_list_data_provider,
                                    'itemView'=>'common.front_blocks.listview_collection.item_thumbnail',
                                    'summaryText'=>'',
                                    'ajaxUpdate'=>true,
                                    'enablePagination'=> true,                                                                       
                                    'enableSorting'=>false,                           
                                    'sortableAttributes'=>array(),                                                       
                                    )
                                  );   
                		?>
	            		</div>
            		</div>
	            <?php endif; ?>  
	            <?php if($this->display_type==ListViewCollectionBlock::DISPLAY_TYPE_LINK) : ?>
	            	<div class="span3">
			  			<div class="well margcenter">
			  				<p class="well-header">Our Collections</p>
	           		<?php
	           			$this->widget('zii.widgets.CListView',
	           				array(
	           						'viewData'=>array('asset'=>$this->layout_asset),
	           						'dataProvider'=>$content_list_data_provider,
	           						'itemView'=>'common.front_blocks.listview_collection.item_link',
	           						'itemsTagName'=>'ul',
	           						'itemsCssClass'=>'nav nav-list',
	           						'summaryText'=>'',
	           						'ajaxUpdate'=>true,
	           						'enablePagination'=> true,
	           						'enableSorting'=>false,
	           						'sortableAttributes'=>array(),
	           				)
	           		);
	           		?>
	           			</div>
	           		</div>
	            <?php endif; ?>  
            <?php endif; ?>			
	
<?php endif; ?>

